﻿using UnityEngine;
using UnityEditor;
using PureMVC.Patterns;
using PureMVC.Interfaces;
using OrderSystem;

public class WaiterGetPayCommand : SimpleCommand
{
    public override void Execute(INotification notification)
    {
        base.Execute(notification);

        WaiterProxy proxy = Facade.RetrieveProxy(WaiterProxy.NAME) as WaiterProxy;
        proxy.setWaiterIdleByOrder(notification.Body as ClientItem);
    }
}